package jse;

import org.junit.Test;

/**
 * @desc   测试重写toString方法。
 * @author kanggw
 * @datetime 2016年4月5日,下午9:14:03
 */
public class Test20160105 {

	 @Test
	 public void testRewrite() {
		 
		 	Test20160105RewriteToString rewriteToString1 = new Test20160105RewriteToString("大明",12,22.22);
			Test20160105RewriteToString rewriteToString2 = new Test20160105RewriteToString("中明",12,22.22);
			Test20160105RewriteToString rewriteToString3 = new Test20160105RewriteToString("小明",12,22.22);
			
			System.out.println(rewriteToString1.toString());
			System.out.println(rewriteToString2.toString());
			System.out.println(rewriteToString3.toString());
	 }
	
}
